package com.sky.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

//文章分类实体类
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "新建文章分类传递的数据模型")
public class CategoryDTO implements Serializable {

    @Schema(description = "主键id")
    private Long id;

    //分类名称
    @Schema(description = "分类名")
    private String name;

    //创建时间
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    //更新时间
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;



}
